package com.smedi.ismedi.authority.starter.exception;

/**
 * @Author: xulinjun
 * @Date: 2021-6-30 13:24
 */
public class BasicError {
    public static final ErrorItem NORMAL_ERROR = new ErrorItem(90000, "系统错误，请联系系统管理员！");

    public static final ErrorItem NO_DATA_FOUND = new ErrorItem(90001, "系统未找到数据或已删除！");

    public static final ErrorItem LOCK_USED = new ErrorItem(90001, "该锁已被使用！");

    public static final ErrorItem SLEEP_ERROR = new ErrorItem(90003, "休眠失败！");

    public static final ErrorItem CALL_REMOTE_API_TOKEN_MISS = new ErrorItem(90004, "远程接口调用令牌缺失！");

    public static final ErrorItem CALL_REMOTE_API_ERROR = new ErrorItem(90005, "远程接口调用失败！");

    public static final ErrorItem UN_HANDLER_EXCEPTION = new ErrorItem(90006, "系统异常！");

    public static final ErrorItem UNKNOWN_EXCEPTION = new ErrorItem(90006, "未知异常！");

    public static final ErrorItem TOKEN_MISS = new ErrorItem(90007, "未传入票据令牌！");

    public static final ErrorItem NEED_INFO_BUT_TOKEN_MISS = new ErrorItem(90007, "需要用户信息，但未传入票据令牌！请传入票据令牌后重试！");

    public static final ErrorItem TOKEN_INFO_MISS = new ErrorItem(90008, "未找到票据对应的用户信息！");

    public static final ErrorItem TOKEN_INVALID = new ErrorItem(90009, "不合法的票据令牌！");

    public static final ErrorItem METHOD_ARGUMENT_NOT_VALID = new ErrorItem(90010, "校验失败！");

    public static final ErrorItem NET_FAILURE = new ErrorItem(99999, "网络异常，请稍后再试！");

    public static final ErrorItem BUSINESS_IS_DEALING = new ErrorItem(99998, "正在处理中，请稍后再试！");
}
